package com.xiuyou.tracksdk.http;

/**
 * Author: wyouflf
 * Time: 2014/06/05
 */
public enum ErrorMethod {
    TIME_OUT("ConnectTimeoutException","连接超时."),
    SERVER_REJECT("HttpHostConnectException","服务器拒绝访问."),
    OTHRE_EXCEPTION("","其他类别的异常."),

    SERVER_ERROR_404("server_error_404","服务器返回404异常."),
    SERVER_ERROR_500("server_error_500","服务器返回500异常."),
    SERVER_ERROR_OTHER("server_error_other","服务器返回其他异常."),

    NET_NET_CONNECT("net_error","网络连接错误.");

    private final String value;
    private final String key;

    ErrorMethod(String key, String vlaue) {
        this.value = vlaue;
		this.key = key;
    }

	public String getValue() {
		return value;
	}

	public String getKey() {
		return key;
	}

}